Cohesion Metrics
نویسندگان
چکیده
We consider ways of measuring the cohesion of program fragments based upon techniques for program slicing, following the work of Ott et al 12, 2, 13, 11, 10]. The approach is based on the idea that the intersection of a program's slices represents that part of the fragment which is cohesive. We produce cohesion metrics that are structurally identical to those of Ott and Thuss 13], the diierence is that we consider diierent ways of measuring the signiicance of the intersection of a program's slices. We introduce expression metrics, to calculate the signiicance of the code in the intersection of slices, arguing that this approach may provide better answers than thèLines of Code' approach implicit in much of the literature 12, 10, 13]. The substitution of thèLines of Code' metric with alternative metrics, within the metrics deened by Ott and Thuss, motivates the consideration of metrics as higher{order functions, expressed in a pure functional programming language. This provides us with many convenient notational conventions with which to construct new metrics by partial application and instantiation of function{valued parameters, within such higher{order metrics. We also raise some new issues concerning the computability of a cohesion metric, based upon program slices, indicating that the approach may, in some cases give an over{large value for cohesion.
منابع مشابه
Theoretical Validation of Object-Oriented Lack-of-Cohesion Metrics
Class cohesion refers to the degree of relatedness of class attributes and methods. Software developers use class cohesion measure to assess the quality of their products and to guide the restructuring of poorly designed classes. Several class cohesion metrics are proposed in the literature, and a few of them are theoretically validated against the class cohesion necessary properties. Metrics t...
متن کاملClass Cohesion Metrics in Object Oriented Systems
In order to improve the quality of an application during the development process, developers use several metrics. These metrics measure the different software attributes such as cohesion, coupling and complexity. To measure the class cohesion several class cohesion metrics have been introduced till date. Cohesion is measured during the design phase to predict software quality. A high cohesive m...
متن کاملValidating Object-Oriented Class Cohesion Metrics Mathematically
Class cohesion refers to the extent to which the members of a class are related. Several class cohesion metrics are proposed in the literature to indicate class cohesion and a few of them are mathematically validated against the necessary properties of class cohesion. Metrics that violate class cohesion properties are not well defined, and their utility as indictors of the relatedness of class ...
متن کاملA New Class Cohesion Criterion:
Class cohesion is considered as one of important object-oriented software attributes. Cohesion refers to the degree of the relatedness of the members in a class. High cohesion is a desirable property of classes. Several metrics have been proposed in the literature in order to measure class cohesion in object-oriented systems. They capture class cohesion in terms of connections among members wit...
متن کاملImproving Class Cohesion Measurement: Towards a Novel Approach Using Hierarchical Clustering
Class cohesion is considered as one of the most important object-oriented software attributes. High cohesion is, in fact, a desirable property of software. Many different metrics have been suggested in the last several years to measure the cohesion of classes in object-oriented systems. The class of structural object-oriented cohesion metrics is the most investigated category of cohesion metric...
متن کاملClass Cohesion Metrics for Software Engineering: A Critical Review
Class cohesion or degree of the relations of class members is considered as one of the crucial quality criteria. A class with a high cohesion improves understandability, maintainability and reusability. The class cohesion metrics can be measured quantitatively and therefore can be used as a base for assessing the quality of design. The main objective of this paper is to identify important resea...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 1995